<div class="ctdts view">
<h2><?php  __('Ctdt');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $ctdt['Ctdt']['id']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Nganh'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $this->Html->link($ctdt['Nganh']['id'], array('controller' => 'nganhs', 'action' => 'view', $ctdt['Nganh']['id'])); ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Khoa'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $ctdt['Ctdt']['Khoa']; ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Ctdt', true), array('action' => 'edit', $ctdt['Ctdt']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('Delete Ctdt', true), array('action' => 'delete', $ctdt['Ctdt']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $ctdt['Ctdt']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Ctdts', true), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Ctdt', true), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Nganhs', true), array('controller' => 'nganhs', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Nganh', true), array('controller' => 'nganhs', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Khmauks', true), array('controller' => 'khmauks', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Khmauk', true), array('controller' => 'khmauks', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Moncds', true), array('controller' => 'moncds', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Moncd', true), array('controller' => 'moncds', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Nhom Hps', true), array('controller' => 'nhom_hps', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Nhom Hp', true), array('controller' => 'nhom_hps', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php __('Related Khmauks');?></h3>
	<?php if (!empty($ctdt['Khmauk'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Sinhvien Id'); ?></th>
		<th><?php __('Hknk Id'); ?></th>
		<th><?php __('Ctdt Id'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($ctdt['Khmauk'] as $khmauk):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $khmauk['id'];?></td>
			<td><?php echo $khmauk['sinhvien_id'];?></td>
			<td><?php echo $khmauk['hknk_id'];?></td>
			<td><?php echo $khmauk['ctdt_id'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'khmauks', 'action' => 'view', $khmauk['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'khmauks', 'action' => 'edit', $khmauk['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'khmauks', 'action' => 'delete', $khmauk['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $khmauk['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Khmauk', true), array('controller' => 'khmauks', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Moncds');?></h3>
	<?php if (!empty($ctdt['Moncd'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Ctdt Id'); ?></th>
		<th><?php __('Mon Id'); ?></th>
		<th><?php __('Nhom'); ?></th>
		<th><?php __('TongSoTC'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($ctdt['Moncd'] as $moncd):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $moncd['id'];?></td>
			<td><?php echo $moncd['ctdt_id'];?></td>
			<td><?php echo $moncd['mon_id'];?></td>
			<td><?php echo $moncd['nhom'];?></td>
			<td><?php echo $moncd['tongSoTC'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'moncds', 'action' => 'view', $moncd['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'moncds', 'action' => 'edit', $moncd['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'moncds', 'action' => 'delete', $moncd['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $moncd['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Moncd', true), array('controller' => 'moncds', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Nhom Hps');?></h3>
	<?php if (!empty($ctdt['NhomHp'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Nhom Hp Id'); ?></th>
		<th><?php __('Manhom'); ?></th>
		<th><?php __('Ctdt Id'); ?></th>
		<th><?php __('TenNhom'); ?></th>
		<th><?php __('TongTC'); ?></th>
		<th><?php __('BacBuoc'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($ctdt['NhomHp'] as $nhomHp):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $nhomHp['id'];?></td>
			<td><?php echo $nhomHp['nhom_hp_id'];?></td>
			<td><?php echo $nhomHp['manhom'];?></td>
			<td><?php echo $nhomHp['ctdt_id'];?></td>
			<td><?php echo $nhomHp['tenNhom'];?></td>
			<td><?php echo $nhomHp['tongTC'];?></td>
			<td><?php echo $nhomHp['bacBuoc'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'nhom_hps', 'action' => 'view', $nhomHp['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'nhom_hps', 'action' => 'edit', $nhomHp['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'nhom_hps', 'action' => 'delete', $nhomHp['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $nhomHp['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Nhom Hp', true), array('controller' => 'nhom_hps', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
